package day02;
import java.util.Scanner;
public class DataTypeDemo {
    public static void main(String[] args) {
        /*   多行注释
        int a=5;
        double b=a,b1=3.24;//b=a自动转换
        long c=a,c1=6;
        int d=(int)c1;
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
        long e=10000000000L;
        int f=(int)e;//溢出
        System.out.println(f);
        double g=25.123;
        int h=(int)g;
        System.out.println(h);//丢失精度
        char i='女';
        int j=i;
        System.out.println(j);

         */
        byte b1 = 5;//整数直接量
        byte b2 = 6;
        byte b3=(byte)(b1+b2);//byte short char 运算自动转换int型
        System.out.println(b3);
        System.out.println(2+2);//4
        System.out.println(2+'2');//52
        System.out.println('2'+'2');//100
        System.out.println('2');//字符2
        System.out.println('我'+'你');
        Scanner scan=new Scanner(System.in);
        int age= scan.nextInt();
    }
}
